
#ifndef _DB_H_
#define _DB_H_

#include <mysql/mysql.h>
#include "public.h"

extern MYSQL *g_conn;
extern int abc;

int DHT11SaveData(int argc, char *argv[]);
int DHT11updateDeviceInfo(int argc, char *argv[]);
int DHT11SaveDeviceInfo(int argc, char *argv[]);
int DHT11SaveCmdResult(int argc, char *argv[]);
int InitMysql();
void CloseMySql();

#endif //_DB_H_
